package com.example.wxminiprogram.mapper;

import com.example.wxminiprogram.pojo.SwiperItem;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HomeMapper {
    @Select("select * from swiper")
    List<SwiperItem> getAllSwiper();
    @Delete("delete from swiper where goods_id = #{goods_id}")
    void deleteByGoodsId(Integer goods_id);
}
